package com.editor.smsmanager;

import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.widget.FrameLayout;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

public class ShareIconView extends FrameLayout {

    ShareBgdView shareBgdView;


    public ShareIconView(@NonNull Context context) {
        super(context);
        init();
    }

    public ShareIconView(@NonNull Context context, @Nullable AttributeSet attrs) {
        super(context, attrs);
        init();
    }

    public ShareIconView(@NonNull Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        init();
    }

    public void init(){
        LayoutInflater.from(getContext()).inflate(R.layout.layout_share_icon, this, true);
        shareBgdView = findViewById(R.id.share_bgd);
    }

    public void setBgdColor(int color){
        shareBgdView.setBgdColor(color);
    }
}
